package com.hualan.controller;

import com.hualan.service.CourseproblemService;
import com.hualan.util.R;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/CourseproblemController")
public class CourseproblemController {
    @Autowired
    private CourseproblemService courseproblemService;

    @PostMapping("/selectAllCourseProblemAndReply")
    public R selectAllCourseProblemAndReply(int userId){
        return courseproblemService.selectAllCourseProblemAndReply(userId);
    }

}
